package com.luo.chengrui.module.crbpm.convert.definition;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import com.luo.chengrui.module.crbpm.controller.admin.definition.vo.modelactivity.ModelActivityCreateReqVO;
import com.luo.chengrui.module.crbpm.controller.admin.definition.vo.modelactivity.ModelActivityRespVO;
import com.luo.chengrui.module.crbpm.controller.admin.definition.vo.modelactivity.ModelActivityUpdateReqVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.luo.chengrui.module.crbpm.dal.dataobject.definition.ModelActivityDO;

/**
 * 流程模型正式版环节 Convert
 *
 * @author luodz
 */
@Mapper
public interface ModelActivityConvert {

    ModelActivityConvert INSTANCE = Mappers.getMapper(ModelActivityConvert.class);

    ModelActivityDO convert(ModelActivityCreateReqVO bean);

    ModelActivityDO convert(ModelActivityUpdateReqVO bean);

    ModelActivityRespVO convert(ModelActivityDO bean);

    List<ModelActivityRespVO> convertList(List<ModelActivityDO> list);

    PageResult<ModelActivityRespVO> convertPage(PageResult<ModelActivityDO> page);


}
